package com.lottery.material.service.portal.portaluser;

import com.lottery.material.entity.portaluser.FollowInfo;
import com.lottery.material.entity.portaluser.PortalUserInfo;
import com.lottery.material.service.base.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

/**
 * @Author 肖拔赟
 * @Description 用户关注信息
 * @DATE Created on 2019-04-04 9:35
 */
public interface FollowInfoService extends BaseService<FollowInfo, Integer> {
    /**
     * @Author 肖拔赟
     * @Description 分页查询关注的用户信息
     * @Date Created on 2019-04-04 15:20
     * @param  userId
     * @return Pageable 分页对象
     */
    Page<PortalUserInfo> findFollowByUserId(String userId, Pageable pageable);
    FollowInfo findByUserIdAndFollowUserId(String userId,String followUserId);

}
